{template Public:Admin:header}
<style type="text/css">
input[type="checkbox"], input[type="radio"] {
	opacity: 1;
	position: static;
}
</style>
<form action="/admin/template/post" method="post" class="form-horizontal form-bordered " role="form">

    {foreach $templatearr $value}
        {if $value['filename']!='index.html' && $value['filename']!='index.htm'}
             <div class="form-group">
             
             	<div class="col-sm-1 no-padding-right">
               
                </div>
                
                <div class="col-sm-2 no-padding-right">
                 <img name="{echo $value['filename']}" src="/Theme/{echo $value['filename']}/preview.png" />
                    <div class="radio">
                        <label>
                             <input name="DEFAULT_THEME" type="radio" value="{echo $value['filename']}"{if $value['filename']==C('DEFAULT_THEME')}  checked="checked"{/if}/> 
                            <span class="text">{echo $value['filename']} 模板</span>
                        </label>
                    </div>
                </div>
                <div class="col-sm-3">
                	<b>模板存放路径</b>
                    <p>/Theme/{echo $value['filename']}</p>
                    <br />
                    <b>样式存放路径</b>
                    <p>/assets/css</p>
                    <br />
                    <b>模板默认颜色</b>
                    <div class="theme-area">
                        <ul class="colorpicker" id="skin-changer" style="padding-left:0px;">
                        	{foreach $stylearr $key=>$color}
                       				<li style="width:18px;">
                                        <div style="background-color:{echo $color};">&nbsp;</div>
                                        {if $value['filename']==C('DEFAULT_THEME')}
                                        <input name="DEFAULT_THEME_STYLE" type="radio" value="{echo $key}"{if $key==C('DEFAULT_THEME_STYLE')}  checked="checked"{/if}/>
                                        {/if}
                                    </li>
                        	{/foreach}
                        </ul>
                   </div>
                </div>
             </div>
        {/if}
    {/foreach} 
    
    <div class="form-group">
        <div class="col-sm-offset-1 col-sm-10">
            <button class="btn btn-palegreen" type="submit">提交</button>
        </div>
    </div>
</form>


{template Public:Admin:footer}